package com.zjcode.cdcer.service;

import com.chinatechstar.component.commons.supports.PageData;
import com.zjcode.cdcer.model.basic.JsonObj;
import com.zjcode.cdcer.service.fallback.CerDetaildataImportInfoServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "zjcode-chronic-disease-cancer-server", fallback = CerDetaildataImportInfoServiceFallback.class)
public interface CerDetaildataImportInfoService {

    @PostMapping("/cdcerserver/v1/detaileddatareporting/getPageData")
    JsonObj listAllTableData(PageData pageData);

    @PostMapping("/cdcerserver/v1/detaileddatareporting/queryAllExportData")
    JsonObj queryAllExportData(PageData pageData);

    @PostMapping("/cdcerserver/v1/detaileddatareporting/batchDeletion")
    JsonObj batchDeletion(@RequestBody PageData pageData);

    @PostMapping("/cdcerserver/v1/detaileddatareporting/oneClickDelete")
    JsonObj oneClickDelete(PageData pageData);

    @PostMapping("/cdcerserver/v1/detaileddatareporting/deleteById")
    JsonObj deleteById(PageData pageData);

    @GetMapping("/cdcerserver/v1/detaileddatareporting/findDataById")
    JsonObj findById(@RequestParam("id") String id);

    @PostMapping("/cdcerserver/v1/detaileddatareporting/updateRecord")
    JsonObj updateRecord(PageData pageData);

    @PostMapping("/cdcerserver/v1/detaileddatareporting/execFileParse")
    JsonObj execFileParse(PageData pageData);
}
